package snafu.implementation.objects.grass;

import java.awt.Color;

import snafu.framework.objects.WorldObjectItself;
import snafu.framework.states.StateItself;
import snafu.framework.view.Access;
import snafu.implementation.senses.stimuli.light.LightStimulusItself;
import snafu.implementation.states.literals.color.ColorLiteralItself;
import snafu.implementation.states.literals.depth.DepthLiteralItself;
import snafu.implementation.states.literals.walk.WalkableLiteralItself;

public class GrassItself extends WorldObjectItself<GrassView> implements Grass {
	@Override
	public StateItself getInitialState() {
		StateItself state = new StateItself();
		state.addLiteral(new ColorLiteralItself(new Color(101, 209, 4), Access.PUBLIC));
		state.addLiteral(new DepthLiteralItself(0 , Access.PUBLIC));
		state.addLiteral(new WalkableLiteralItself(true, Access.PUBLIC));
		
		state.addStimulus(new LightStimulusItself(0, 100));
		
		return state;
	}
	
	@Override
	public GrassView createView(Access access) {
		return new GrassView(access, this);
	}

	@Override
	public String output() {
		return "Grass";
	}
}
